package com.one.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.one.bean.Orders;
import com.one.vo.OrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Create on 2022-01-16
 * <p>
 * Author: LiangWei
 * <p>
 * Description:
 **/
@Mapper
public interface OrderMapper extends BaseMapper<Orders> {
    /**
     * @description 根据id查询订单
     * @author ShiWen
     * @date 2022/1/18 14:39
     */
    OrderVo selectOrderById(@Param("userId") Integer userId, @Param("orderId") Integer orderId);

    /**
     *  根据订单号查询
     */
    OrderVo selectOrderByNo(@Param("orderNo") String orderNo);
}
